//
//  FRPGalleryViewModel.m
//  FunctionalReactivePixels
//
//  Created by Linyongzhi on 2017/4/13.
//
//

#import "FRPGalleryViewModel.h"
#import "FRPPhotoImporter.h"

@implementation FRPGalleryViewModel

@dynamic model;

- (instancetype)init {
    self = [super init];
    if (!self) {
        return nil;
    }
    
    RAC(self, model) = [[[FRPPhotoImporter importPhotos]
                         logError] catchTo:[RACSignal empty]];
    return self;
}

@end
